package com.atguigu.gulimall.order.feign;

import com.atguigu.gulimall.order.vo.MemberAddressVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient("gulimall-member")    //标明要调用哪个远程服务
public interface MemberFeignService {
    /**
     * 根据会员 id 查询收货地址
     */
    @GetMapping("/member/memberreceiveaddress/{memberId}/addresses")    //标明调用远程服务中的哪个功能
    List<MemberAddressVo> getAddress(@PathVariable("memberId") Long memberId);
}

